package cn.ylz.ylmall.order.dao.persist.repository;


import cn.ylz.ylmall.order.pojo.entity.OrderDetail;
import cn.ylz.ylmall.order.pojo.vo.OrderDetailVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.util.List;
import java.util.Map;

/**
 * @author ks
 */
public interface OrderDetailRepository {

    /**
     * 新增订单
     * @param orderDetail
     * @return
     */
    int insert(OrderDetail orderDetail);

    /**
     * 查询订单
     * @param orderNo
     * @return
     */
    OrderDetail selectOrderVO(String orderNo);

    /**
     * 删除订单
     * @param orderNo
     * @return
     */
    int deleteOrder(String orderNo);

    /**
     * 修改订单
     * @param paramMap
     * @return
     */
    int updateOrder(Map<String,Object> paramMap);

    /**
     * 查询订单列表
     * @return
     */
    List<OrderDetail> selectOrderList(QueryWrapper<OrderDetail> queryWrapper);

}
